<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{lang Shopping_Shipping_Shopping_Shipping_Shopping}" />
<meta name="description" content="{lang Free_Shipping_goods}！" />
<link href="{TPL}css/AddItemPanel.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="{TPL}css/List.css">
<script src="{TPL}js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.json-1.3.min.js"></script>
<link href="{TPL}css/piece.css" rel="stylesheet" type="text/css" />
<link href="{TPL}css/quicklogin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{TPL}js/Piece.js"></script>
<title>[{$cfg_site_name}]-{lang Free_Shipping_goods}，{lang Free_domestic_shipping}</title>
<style type="text/css">

.pages {float:right;height:25px;margin:0px 10px 0px 0px;display:inline;overflow:hidden}
.pages li{list-style-type: none;}
.pages  a{text-decoration:none;}
.pages li{
border:1px solid #AAAAAA;color:#666666;display:inline;float:left;height:20px;line-height:20px;margin-left:2px;padding:0 5px;text-decoration:none;}
.pages li {border:1px solid #DDDDDD;color:#CCC;font-family:"simsun";}
.pages li:hover {background:#FFEDE1;border:1px solid #FF9900;}
.pages .current {background:#FFEDE1;border:1px solid #FF6600;color:#FF0000;}
.pages em {color:#999999;display:inline;float:left;height:22px;line-height:22px;margin-left:5px;}

</style>
    <script type="text/javascript">
        var cate="{$typename}",subcate="";
        $(document).ready(function() {
            var cateList = $(".caidan h3");
            cateList.children("a[title=" + cate + "]").parent("h3").addClass("t");
            if (subcate != "")
                $(".caidan li:contains('" + subcate + "')").addClass("x");
            var data = $.evalJSON(jaaulde.utils.cookies.get("shopscan"));
            if (data != null) {
                $.each(data, function(index, item) {
                    $("#scan").append("<li><a href='shop.php?action=view&gid=" + item["id"] + "'><img src='" + item["pimg"] + "' alt='" + item["n"] + "'  /></a></li>");
                });
            }
            $(".submitBtn").click(function() {
				var pid=$(this).children("input").val();

                $.ajax({
                    type: "POST",
                    url: "/ajax/shop_ajax.php?action=addbuynum",
                    dataType: "json",
                    contentType: "application/json;utf-8",
                    data: "{'pid':'" + pid + "'}",
                    timeout: 10
                });
            });
        });
    </script>
</head>
<body>
  {template 'header'}
  <div class="piece_top"></div>
  <div class="piece">
    <div class="leftpan">
	  <div class="leftpan_con">
      <div class="possible">
        <h2 class="tit_new_h2 h45">{lang Goods_fight}</h2>
        <div class="search">
          <div class="select">
            <input id="categoryID" onfocus="this.blur();" onmouseout="this.className='';" onmouseover="this.className='bian';" onclick="$('#categoryList').show()" readonly="readonly" type="text" value="所有分类" categoryid="-1" />
        <div onclick="this.style.display='none';" class="sort" id="categoryList" style="display: none;">
	
	
		<a onclick="$('#categoryID').val('所有分类').attr('categoryid','0');" href="javascript:;"> {lang All_Categories}</a>
	
	{loop $listarr $r}
		<a onclick="$('#categoryID').val('{$r['typename']}').attr('categoryid','{$r['typeid']}');" href="javascript:;"> {$r['pre']}{$r['typename']}</a>
	{/loop}

		</div>
          </div>
          <input class="text" id="searchKeyword" onfocus="searchFocus()"
                        onblur="searchBlur()" name="" type="text" value="请输入商品名.." />
          <input
                            class="go" name="" onmouseover="this.className='go_'" onmouseout="this.className='go'"
                            onclick="searchPiece()" type="button" value="{lang Search}" />
        </div>

      </div>
      <div class="merchandise">
        <div class="remen">
          <p> {lang Top_Categories}：
		  {loop $listarr $r}
		  {if $r['node']==0}
		  <a href="{url_shop.php?action=list&tid=$r['typeid']}">{$r['typename']}</a>&nbsp; 
		  {/if}
		  {/loop}
		  </p>
          <dl>
            <dd></dd>
          </dl>
          <span> </span> </div>
        <ul>
		
		
		{loop $dataarray $r}
		
          <li>
            <div class="pic"> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank"> <img src="{$r['goodsimg']}"
                                            alt="{$r['goodsname']}" onerror="this.src='{TPL}images/noimg220.gif';" /></a> </div>
            <div class="summary">
              <h1 id="goodsname"> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank" title="{$r['goodsname']}"> {$r['goodsname']}</a></h1>
              <p> ￥{$r['goodsprice']}</p>
              <div class="pd"><a href="###" class="submitBtn" onclick="FastAddShow('{url_$site_url/shop.php?action=view&gid=$r['gid']}')">{lang i_like_Shopping}<input type="hidden" name="pid" value="{$r['gid']}" /></a><a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">{lang see_detail}</a></div>
              <dl>
                <dd> {lang Number_purchasing}：<span class="say">{$r['buynum']}{lang Times}</span></dd>
                <dd> {lang Views}：<span class="say">{$r['views']}{lang Times}</span></dd>
              </dl>
            </div>
          </li>
		{/loop}
		  
        </ul>
      </div>
      <div class="yj">

			{echo pagelist($total,$pagesize,$page,"");}
 
      </div>
    </div>
	</div>
	
    <div class="right">
      <div class="zuo">
        <div class="lm boder">
     		<h2 class="tit_jiantou_h2 h45">{lang hot_goods_type}</h2></div>
        <div class="caidan" style=" border-color:#DFDFDF;">
	
		{loop $listarr $key $r}
		{if $r['node']==0}
          <h3 > <a title="{$r['typename']}" href="{url_shop.php?action=list&tid=$r['typeid']}"> <b> {$r['typename']}</b><span></span></a></h3>
          <ul>
			
			{loop $listarr $v}
			{if $v['node']==$r['typeid']}
            <li><a href="{url_shop.php?action=list&tid=$v['typeid']}"> {$v['typename']}</a></li>
			{/if}
			{/loop}
          </ul>
		{/if}
		{/loop}

        </div>

		
      </div>
      <div class="bz left">
	    <div class="wap2_h2">
        <h2 class="tit_jiantou2_h2 h45" style="_width:65px;width:65px;"> {lang Hot_spell_baby}</h2>
		</div>
        <div class="bang">
          <div class="qh">
            <ul>
              <li class="on"><a onclick="mutiDiv(0)">{lang Top_Shopping}</a></li>
              <li><a onclick="mutiDiv(1)">{lang top_click}</a></li>
            </ul>
          </div>
          <div id="point" class="jifen">
		{loop $leftarray $key $r}  
            <dl>
              <dt style="display: none;">
                <div class="img">
				<a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">
				<img src="{$r['goodsimg']}" alt="{$r['goodsname']}" /></a> </div>
                <div class="xiangxi">
                  <h1> <i> {echo $key+1}.</i><a title="{$r['goodsname']}" href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">{substrs($r['goodsname'],35)}..</a></h1>
                  <label> ￥{$r['goodsprice']}</label>
                  <p> {lang Number_purchasing}：<i>{$r['buynum']}{lang Times}</i></p>
                </div>
              </dt>
              <dd onmouseover="showHotProInfo(this)">
			{if $key<3}
				<span>{echo $key+1}</span>
			{else}
				<b>{echo $key+1}</b>
			{/if}
                <p> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank"> {$r['goodsname']}</a></p>
              </dd>
            </dl>
		{/loop}
			
          </div>
          <div id="pieceNum" class="jifen" style="display: none;">
		  
		{loop $rightarray $key $r}
			<dl>
             <dt style="display: none;">
                <div class="img">
				<a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">
				<img src="{$r['goodsimg']}" alt="{$r['goodsname']}" /></a> </div>
                <div class="xiangxi">
                  <h1> <i> {echo $key+1}.</i><a title="{$r['goodsname']}" href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">{substrs($r['goodsname'],35)}..</a></h1>
                  <label> ￥{$r['goodsprice']}</label>
                  <p> {lang Number_purchasing}：<i>{$r['buynum']}{lang Times}</i></p>
                </div>
              </dt>
              <dd onmouseover="showHotProInfo(this)">
			{if $key<3}
				<span>{echo $key+1}</span>
			{else}
				<b>{echo $key+1}</b>
			{/if}
                <p> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank"> {$r['goodsname']}</a></p>
              </dd>
            </dl>
		{/loop}

          </div>
        </div>
      </div>
	  
        <div class="lately">
          <h2 class="tit_jiantou_h2">{lang recently_browsed}</h2>
          <ul id="scan">
          </ul>
        </div>

    </div>
  </div>
  {template 'footer'}
</body>
</html>
